The structure of my DOORS objects is as follows |
Re: Concatenate Object Heading (Level 1) and object text (Level 3)
You need the 'parent' perm (twice) to get the level 1 heading object. The rest is buffer concatenation.
Object grandParentObj = null
Buffer buf = create
Buffer tmp = create
int iLevel = level obj
if (iLevel == 3)
{
grandParentObj = parent parent obj
tmp = obj."Object Text"
buf = grandParentObj."Object Heading"
buf += ": "
buf += tmp
display tempStringOf buf
}
delete buf
delete tmp
|
Re: Concatenate Object Heading (Level 1) and object text (Level 3) Your script worked perfectly fine. thank you so much. |